package com.huatai.user.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@TableName("sys_client")
@ApiModel(value = "连接数相关实体", description = "连接数相关实体")
@Data
public class LinkInfo implements Serializable {
	@ApiModelProperty("id")
	@TableId
	private Long id;
	@ApiModelProperty("渲染服务器ip")
	private String serverIp;
	@ApiModelProperty("访问的ip")
	private String userIp;
	@TableField(value = "create_time",fill = FieldFill.INSERT)
	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime createTime;

}
